Clamps Dictionary
amplitude->db
Function
(amplitude->db evt)
Return the amplitude value in dB from a Common Music event. If it is a Midi note event, a float value in the :amplitude slot is expected to be the linear amplitude in the range [0..1], if it is an integer, it is a linear velocity value in the range [0..127]. Both will be mapped to the range [-30..0] with zero interpreted as -100 dB. sfz events already contain the amplitude value in dB.
Arguments
evt |
A common music event type containing an :amplitude slot. |